package com.kelp.codetoolkit.service

import com.intellij.openapi.project.Project
import com.intellij.psi.PsiJavaFile
import com.kelp.codetoolkit.dto.GenerateCodeContentDTO


/**
 * @author: liuyuebai
 * @date: 2024/8/2 13:54
 * @description:
 */
interface CreateBusinessLogicFileService {

    companion object {
        fun getInstance(project: Project): CreateBusinessLogicFileService{
            return project.getService(CreateBusinessLogicFileService::class.java)
        }
    }

    /**
     * 数据库生成代码
     */
    fun databaseToBusinessLoginServiceFIle(project: Project,codeParams: GenerateCodeContentDTO)

    /**
     * 实体类 生成服务类
     */
    fun entityToBusinessLoginServiceFIle(project: Project,psiJavaFile: PsiJavaFile)
}